package com.order.service.impl;

import com.order.dao.Item;
import com.order.mapper.ItemMapper;
import com.order.service.ItemService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@AllArgsConstructor
public class ItemServiceImpl implements ItemService {
    private ItemMapper itemMapper;
    @Override
    public int addItem(Item item) {
        return itemMapper.addItem(item);
    }

    @Override
    public List<Item> selectItem(int oid) {
        return itemMapper.selectItem(oid);
    }
}
